#include "TypeDefine.hpp"
#include "StringPool.hpp"
using namespace NAMESPACENAME;
NAMESPACENAME::StringPool NAMESPACENAME::StringPool::defaultStringPool;
Rectangle::Rectangle() :
	x(0), y(0), width(0), height(0)
{
}
Rectangle::Rectangle(int x, int y, int width, int height) :
	x(x), y(y), width(width), height(height)
{
}
NAMESPACENAME::Rectangle::Rectangle(const RECT& rect):
	x(rect.left),
	width(rect.right - rect.left),
	height(rect.bottom - rect.top),
	y(rect.top)
{
}
Rectangle::operator RECT()const
{
	return RECT{ x, y, x + width, y + height };
}
NAMESPACENAME::Rectangle& Rectangle::operator=(const RECT& rect)
{
	x = rect.left;
	Right(rect.right);
	y = rect.top;
	Bottom(rect.bottom);
	return *this;
}